.TH std::chrono::day 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::chrono::day \- std::chrono::day

.SH Synopsis
   Defined in header <chrono>
   class day;                  \fI(since C++20)\fP

   The class day represents a day in a month. Its normal range is [1, 31], but it may
   hold any number in [0, 255].

   day is a TriviallyCopyable StandardLayoutType.

.SH Member functions

   constructor       constructs a day
                     \fI(public member function)\fP
   operator++
   operator++(int)   increments or decrements the day
   operator--        \fI(public member function)\fP
   operator--(int)
   operator+=        adds or subtracts a number of days
   operator-=        \fI(public member function)\fP
   operator unsigned retrieves the stored day value
                     \fI(public member function)\fP
   ok                checks if the stored day value is in the normal range
                     \fI(public member function)\fP

   Nonmember functions

   operator==  compares two day values
   operator<=> \fI(function)\fP
   (C++20)
   operator+   adds or subtracts a number of days and a day, or find the difference
   operator-   between two days
   (C++20)     \fI(function)\fP
   operator<<  outputs a day into a stream
   (C++20)     \fI(function template)\fP
   from_stream parses a day from a stream according to the provided format
   (C++20)     \fI(function template)\fP

.SH Helper classes

   std::formatter<std::chrono::day> formatting support for day
   (C++20)                          \fI(class template specialization)\fP
   std::hash<std::chrono::day>      hash support for std::chrono::day
   (C++26)                          \fI(class template specialization)\fP

.SH Literals

   Defined in inline namespace std::literals::chrono_literals
   operator""d  a std::chrono::day literal representing a day of a month
   (C++20)      \fI(function)\fP
